<?php
namespace App\Admin\Grid;

use Encore\Admin\Grid\Filter;

class NFilter extends Filter
{
    public function conditions(): array
    {
        $conditions = parent::conditions();
        foreach($conditions as $k => $v) {
            foreach($v as $k1 => $v1) {
                if (!is_string($v1[0])) continue;
                $conditions[$k][$k1][0] = str_replace('-', '.', $v1[0]);
            }
        }
        return $conditions;
    }
}
